package com.example.feignconsumer.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.example.commons.domain.SmsSendParam;
import com.example.feignconsumer.service.fallback.SmsServiceFallback;

@FeignClient(value = "demo-provider-service", fallback = SmsServiceFallback.class)
public interface SmsService {
	
	/**
	 * 发送短信返回sessionkey
	 * @param param
	 * @return
	 */
	@RequestMapping(value = "/service/sms/send", method = RequestMethod.POST)
	String send(SmsSendParam param);
	
}
